package zouran.shounewsspringboot.service.serviceImp;

import org.springframework.stereotype.Service;
import zouran.shounewsspringboot.entity.Link;
import zouran.shounewsspringboot.mapper.LinkMapper;
import zouran.shounewsspringboot.service.LinkService;

import java.util.List;

/**
 * @author zouran
 * createDate：2023/6/3  19:00
 */
@Service
public class LinkServiceImp implements LinkService {
    private final LinkMapper linkMapper;

    public LinkServiceImp(LinkMapper linkMapper) {
        this.linkMapper = linkMapper;
    }

    @Override
    public List<Link> getAllLink() {
        return linkMapper.selectList(null);
    }

}
